package com.mdd.admin.validate;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import javax.validation.constraints.*;
import com.mdd.common.validator.annotation.IDMust;

/**
 * 用户定时任务参数
 * @author DEREK
 */
@Data
@ApiModel("用户定时任务更新参数")
public class UserTaskUpdateValidate implements Serializable {

    private static final long serialVersionUID = 1L;

    @IDMust(message = "id参数必传且需大于0")
    @ApiModelProperty(value = "主键ID")
    private Integer id;

    @NotNull(message = "userId参数缺失")
    @ApiModelProperty(value = "接受者用户ID")
    private Integer userId;

    @NotNull(message = "type参数缺失")
    @ApiModelProperty(value = "类型 1=纪念日提醒")
    private Integer type;

    @NotNull(message = "status参数缺失")
    @ApiModelProperty(value = "状态 0=待执行 1=已执行 2=已过期")
    private Integer status;

    @NotNull(message = "title参数缺失")
    @ApiModelProperty(value = "标题")
    private String title;

    @NotNull(message = "content参数缺失")
    @ApiModelProperty(value = "内容")
    private String content;

    @NotNull(message = "extend参数缺失")
    @ApiModelProperty(value = "扩展字段")
    private String extend;

}
